<%@page import="co.gov.medellin.ssti.sub.service.ConsultasService"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ page import="java.sql.*, java.util.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="<%= request.getContextPath() + "/css/bloques.css" %>"
	rel="stylesheet" type="text/css">
<link href="<%= request.getContextPath() + "/css/table.css" %>"
	rel="stylesheet" type="text/css">
<title>ModuloDominio</title>

<script type="text/javascript">
 function enviar(locacion){
  document.frmVFL.action=locacion;
  document.frmVFL.submit();
 }
 
 
</script>

</head>
<body>
	<P></P>
	<P></P>

	<form name="frmVFL" method="get">
		<DIV align="center">
			<%
          ConsultasService objCons = new ConsultasService();
          String cod = request.getParameter("codatributo");
          String Nombre = objCons.Nombre(cod);
      %>
			<font class="titulosenblanco"><STRONG>Ingreso de Valores para el Atributo <%=Nombre%></STRONG></font>
		</DIV>
		<DIV align="center">
			<table align="center" cellspacing="3" cellpadding="2" border="0"
				width="20%">
				<tr>
					<td colspan="2" width="40%" class="celdatabla" align="center">
						<STRONG>Tipo de Lista</STRONG>
				</tr>
				<tr>
					<td width="25%" class="celdatabla" align="center"><STRONG>Nombre</STRONG>
					</td>

					<td class="celdatabla" align="center"><STRONG>&iquest;Vigente?</STRONG>
					</td>


				</tr>
				<tr>
					<td width="25%" align="center"><input NAME="tipovfldescrip"
						Class="form" size="20" type="text" /></td>

					<td align="center"><SELECT NAME="tipovflvigente" Class="form">
							<OPTION value="S">Si</OPTION>
							<OPTION value="N">No</OPTION>
					</SELECT></td>
				</tr>

			</table>
		</DIV>
		<br> <br>
		<DIV align="center">
			<table align="center" cellspacing="3" cellpadding="2" border="0"
				width="55%">

				<tr>
					<td width="40%" class="celdatabla" align="center"><STRONG>Valores de la Lista</STRONG></td>

				</tr>

				<td width="25%" class="celdatabla" align="center"><STRONG>Nombre</STRONG>
				</td>

				</tr>
				<% 
     for(int i=1;i<8;i++)
      {    
%>
				<tr>
					<td width="25%" align="center"><input NAME="descripcion<%=i%>"
						Class="form" size="25" type="text" maxlength="24" /></td>

				</tr>
				<% 
     }
%>

			</table>
			<br>
		</DIV>
		<DIV align="center">
			<input type="hidden" name="dom" value="1"> <input
				type="hidden" name="mostregresar" value="1">
			<% session.setAttribute("Escoger","1"); %>

			<input type="hidden" name="codatributo"
				value="<%=request.getParameter("codatributo")%>">
			<% String Ruta = "'"+request.getContextPath() + "/InsertarDominio.do'";
      %>
			<input type="BUTTON" value="Guardar" onclick="enviar(<%=Ruta%>)" />

			<% String Ruta2 = "'"+request.getContextPath() + "/AdicionInsertDominio.do'";
      %>
			<input type="BUTTON" value="Adicionar" onclick="enviar(<%=Ruta2%>)" />
		</DIV>

	</form>
</body>
</html>